package com.luke.cloud.user.controller;

import com.luke.cloud.order.service.RemoteOrderService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.*;

/**
 * @Descrtption UserController
 * @Author luke
 * @Date 2020/4/2
 **/
@RestController
@RequestMapping("/user")
public class UserController {

    @Reference
    RemoteOrderService remoteOrderService;

    @GetMapping("/userCallOrder")
    @ResponseBody
    public String userCallOrder(@RequestParam("message") String message){
        return remoteOrderService.echo(message);
    }

}
